﻿'use strict';
app.controller('WalletManageController', function ($rootScope, $scope, $modal, $localStorage, WalletFactory) {
    $scope.ShareManage = [],
    getShareManager($localStorage.user.UserId);
    function getShareManager(UserId) {
        WalletFactory.getShareManager(UserId).then(function (resp) {
            $scope.ShareManage = resp.data.Result;
        }, function (error) {
            $scope.status = 'Unable to load profile data: ' + error.message;
        });
    }
})